import {Router} from 'vue-router'

export function useTitleSetRouterHandle(router: Router){
    router.beforeEach((to,from,next)=>{
        document.title= to.meta.title as string
        next()
    })
}